﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C6 RID: 198
	internal class Str8String : IStringDecoder
	{
		// Token: 0x060002F9 RID: 761 RVA: 0x0000BD34 File Offset: 0x0000A134
		private Str8String()
		{
		}

		// Token: 0x060002FA RID: 762 RVA: 0x0000BD3C File Offset: 0x0000A13C
		public string Read(byte[] bytes, int offset, out int readSize)
		{
			int num = (int)bytes[offset + 1];
			readSize = num + 2;
			return StringEncoding.UTF8.GetString(bytes, offset + 2, num);
		}

		// Token: 0x040000E3 RID: 227
		internal static readonly IStringDecoder Instance = new Str8String();
	}
}
